using UnityEditor;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.AI
{
    [CustomEditor(typeof(LibertyCarBirthManager))]
    public class LibertyCarBirthManagerEditor : UnityEditor.Editor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            LibertyCarBirthManager carBirthMgr = target as LibertyCarBirthManager;

            if (GUILayout.Button("生成车辆"))
            {
                carBirthMgr.AddCar(carBirthMgr.debugBirthData);
            }

            if (GUILayout.Button("清空车辆"))
            {
                carBirthMgr.Clear();
            }
        }
    }
}